package com.example.xxpk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangguihong
 * @since 2025-02-11
 */
@Getter
@Setter
@TableName("user_sign_in")
@ApiModel(value = "UserSignIn对象", description = "")
public class UserSignIn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("签到记录的唯一标识")
    @TableId(value = "user_sign_in_id", type = IdType.AUTO)
    private Integer userSignInId;

    @ApiModelProperty("用户 ID，关联用户表的 user_id")
    private Integer userId;

    @ApiModelProperty("签到类型，new_user 表示新用户签到，daily 表示日常签到")
    private String signType;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("日期")
    private LocalDate signDate;

    @ApiModelProperty("累计签到天数")
    private Integer totalSignDays;

    @ApiModelProperty("签到日期")
    private LocalDateTime createTime;
}
